import request from "@/utils/request";
import type { PageParams } from "@/types/home";
import type { Hot } from "@/types/hot";
import type { ResponseType } from "@/types/response";

/*获取热门推荐的通用接口*/
export const fetchHotListAPI = (params: PageParams & { subType?: string }, url: string): Promise<ResponseType<Hot>> => request.get<Hot, ResponseType<Hot>>(url, { params });
